<!--%import("js/select.js")-->	
	<!-- #pxeContent -->
	<div id="pxeContent">
		
		<div class="pxeH">
			<h2>내 활동기록 &gt; <strong>모두보기</strong><em>({$page_navigation->total_count} 건)</em></h2>
			<div class="filter">
				<div class="select open" style="width:200px;">
					<span class="ctrl"><span class="arrow"></span></span>
					<!--@if($type)-->
					<button type="button" class="myValue">{$lang->activity_types[$type]} ({intval($counts[$type])})</button>
					<!--@else-->
					<button type="button" class="myValue">공헌분야 ({$sum_activities})</button>
					<!--@end-->
					<ul class="aList">
						<li><a href="{getUrl('page','','type','')}">공헌분야 ({$sum_activities})</a></li>
						<!--@foreach($lang->activity_types as $key => $val)-->
						<li><a href="{getUrl('page','','type',$key)}">{$val} ({intval($counts[$key])})</a></li>
						<!--@end-->
					</ul>
				</div>
			</div>
		</div>
		<table border="1" cellspacing="0" class="pxeT1">
			<thead>
				<tr>
					<th scope="col"><span>공헌분야</span></th>
					<th scope="col" class="title"><span>제목</span></th>
					<th scope="col"><span>날짜</span></th>
				</tr>
			</thead>
			<tbody>
				<!--@if(!$activities)-->
				<tr>
					<td colspan="3" class="pxeNoData">
						<p>아직 내 활동기록이 없습니다.</p>
					</td>
				</tr>
				<!--@else-->
				<!--@foreach($activities as $news)-->
					<tr>
						<!--@if($news->type == "d")-->
						<td>{$modules[$news->item->module_srl]}</td>
						<!--@elseif($news->type == "c")-->
						<td>Comment</td>
						<!--@elseif($news->type == "s")-->
						<td>Commit</td>
						<!--@elseif($news->type == "a")-->
						<td>Assigned</td>
						<!--@else-->
						<td>{$news->type}</td>
						<!--@end-->
						<!--@if($news->type == "d")-->
						<td class="title"><!--@if($news->item->status)--><em class="status {$news->item->status}">{$news->item->status}</em> <!--@end--><a href="{getSiteUrl($projects[$news->site_srl]->domain, '', 'document_srl', $news->item->document_srl)}">{$news->item->title}</a></td>
						<!--@elseif($news->type == "c")-->
						<td class="title"><a href="{getSiteUrl($projects[$news->site_srl]->domain, '', 'document_srl', $news->item->document_srl)}#{$news->item->comment_srl}">{$news->item->title}</a></td>
						<!--@elseif($news->type == "s")-->
						<td class="title">r{$news->item->revision} - {$news->item->message}</td>
						<!--@elseif($news->type == "a")-->
						<td class="title"><em class="status {$news->item->status}">{$news->item->status}</em> <a href="{getSiteUrl($projects[$news->site_srl]->domain, '', 'document_srl', $news->item->document_srl)}">{$news->item->title}</a></td>
						<!--@else-->
						<td class="title">test</td>
						<!--@end-->
						<td class="num">{zdate($news->regdate, "Y.m.d")}</td>
					</tr>
				<!--@end-->
				<!--@endif-->
			</tbody>
		</table>
			<div class="pagination">
                <!--@if($page_navigation->cur_page>1)--><a class="direction" href="{getUrl('page',1)}">&lsaquo; FIRST</a><!--@end-->
                <!--@if($page_navigation->cur_page>1)--><a class="direction" href="{getUrl('page',$page_navigation->cur_page-1)}">&lsaquo; PREV</a><!--@end-->
                <!--@while($page_no = $page_navigation->getNextPage())-->
                    <!--@if($page == $page_no)-->
                    <strong>{$page_no}</strong> 
                    <!--@else-->
                    <a href="{getUrl('page',$page_no,'document_srl','','division',$division,'last_division',$last_division)}">{$page_no}</a>
                <!--@end-->
                <!--@end-->
                <!--@if($page_navigation->cur_page<$page_navigation->total_page)--><a class="direction" href="{getUrl('page',$page_navigation->cur_page+1)}">NEXT &rsaquo;</a><!--@end-->
                <!--@if($page_navigation->cur_page<$page_navigation->total_page)--><a class="direction" href="{getUrl('page',$page_navigation->total_page)}">END &rsaquo;</a><!--@end-->
			</div>
	</div>
	<!-- /#pxeContent -->		
